import { BuiltInFunc } from "./com/BuiltInFunc";

export class WriteStringToFileNode extends BuiltInFunc {

    constructor(name?: string) {
        super(name ? name : 'WriteStringToFile');
        this.edit.out = false
        this.funcName = 'writeStringToFile';
        this.bgColor = '#795548'
        this.addAttribute({
            name: "resultType",
            value: "string",
            type: 'string',
            options: ['string', 'binary']
        })
        this.addInput({ key: 'path' })
        this.addInput({ key: 'content' })
        this.refresh()
    }
    public get className(){
        return 'WriteStringToFile'
    }
}